Get value from DOORS module cell

Hello everyone,

I'm new with DXL and I am trying to simply read one at a time the cell values from a specific column, and to be onnest I have a hard time doing this.

So the column name is ID and it contains some requirements ID. I just want to be able to print the value from every cell in that column in the DXL  window.

Can you please provide some code examples.

Thanks in advance !

Have a nice day !

 


AlexCraciun - Fri Mar 14 09:59:40 EDT 2014

Re: Get value from DOORS module cell
llandale - Fri Mar 14 14:17:42 EDT 2014

I assume you don't mean a "DOORS Table", just the normal module window that resembles a spreadsheet.

If you want the value of a particular attribute:

  • Object o
  • string Value
  • for o in (current Module) do
  • {  Value = o."NameOfAttribute"
  •    print identifier(o) \t[" Value "]\n"
  • }

If you really mean a "Column":

  • Column col = column(2)     // you want to see values in the 3rd column
  • Object o
  • string Value
  • for o in (current Module) do
  • {  Value = text(col, o)
  •    print identifier(o) \t[" Value "]\n"
  • }

Does not work for the "main" column.

-Louie

Re: Get value from DOORS module cell
AlexCraciun - Mon Mar 17 01:17:13 EDT 2014

llandale - Fri Mar 14 14:17:42 EDT 2014

I assume you don't mean a "DOORS Table", just the normal module window that resembles a spreadsheet.

If you want the value of a particular attribute:

  • Object o
  • string Value
  • for o in (current Module) do
  • {  Value = o."NameOfAttribute"
  •    print identifier(o) \t[" Value "]\n"
  • }

If you really mean a "Column":

  • Column col = column(2)     // you want to see values in the 3rd column
  • Object o
  • string Value
  • for o in (current Module) do
  • {  Value = text(col, o)
  •    print identifier(o) \t[" Value "]\n"
  • }

Does not work for the "main" column.

-Louie

Thanks for the help !  The script for the value of a particular attribute is ok for me .